package com.example.demo.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author jiangwz
 * @create 2019/10/27.
 */
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface AccessLimit {


    /**
     * 标识指定时间内访问次数限制
     * @return
     */
    int limit() default 5;

    /**
     * 标识时间段
     * @return
     */
    int second() default 5;


}
